VERSION 5.00
Begin VB.Form CoupleCodeForm 
   Appearance      =   0  'Flat
   BackColor       =   &H80000005&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   9000
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   12000
   LinkTopic       =   "Form1"
   ScaleHeight     =   9000
   ScaleWidth      =   12000
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VCT.EnterCoupleCode EnterCoupleCode1 
      Height          =   3975
      Left            =   600
      TabIndex        =   5
      Top             =   4560
      Width           =   7335
      _ExtentX        =   12938
      _ExtentY        =   7011
   End
   Begin VCT.CoupleCodeCtrl CoupleCodeCtrl1 
      Height          =   3375
      Left            =   720
      TabIndex        =   4
      Top             =   4560
      Width           =   6615
      _ExtentX        =   11668
      _ExtentY        =   5953
   End
   Begin VCT.ClientReception Client 
      Height          =   3855
      Left            =   6120
      TabIndex        =   3
      Top             =   360
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   6800
   End
   Begin VCT.ClientReception Partner 
      Height          =   3855
      Left            =   360
      TabIndex        =   2
      Top             =   360
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   6800
   End
   Begin VB.CommandButton Next_Button 
      Caption         =   "Next"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   1
      Top             =   6360
      Width           =   1935
   End
   Begin VB.CommandButton Cancel_Button 
      BackColor       =   &H008080FF&
      Caption         =   "Cancel"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   7560
      Width           =   1935
   End
End
Attribute VB_Name = "CoupleCodeForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim SelectedPartner As Object
Dim CoupleCodeString As String

Private Sub Cancel_Button_Click()
   RegMenuForm.Show
   Unload Me
End Sub

Private Sub CoupleCodeCtrl1_SelectionMade()
   If CoupleCodeCtrl1.ClientCoupleCode = "0" Then
      EnterCoupleCode1.Visible = True
   Else
      COUPCODE = GetNextCoupleCode
      Client.CoupleCode = COUPCODE
      P_COUPCODE = COUPCODE
      Partner.CoupleCode = P_COUPCODE
      Next_Button.Enabled = True
      'NewNextCoupleCode = NewNextCoupleCode + 1
   End If
End Sub

Private Sub EnterCoupleCode1_KeyPressedEvent()
   Next_Button.Enabled = True
   CoupleCodeString = CoupleCodeString & EnterCoupleCode1.KeyPressed
   Client.CoupleCode = CoupleCodeString
   Partner.CoupleCode = CoupleCodeString
End Sub

Private Sub Form_Load()
   Client.ClientSex = SEX
   Client.ReturnVisit = RETURNV
   Client.NewClientCode = NEWCODE
   Client.ClientCodeEnabled = True
   Client.ClientCode = CLIENTCO
   Client.SessionType = SESSTYPE
   Client.PartnerCode = PARTCODE
   Client.ShowCoupleDetails
   Client.EnableCupCStar
   
   Partner.ClientSex = P_SEX
   Partner.ReturnVisit = P_RETURNV
   Partner.NewClientCode = P_NEWCODE
   Partner.ClientCodeEnabled = True
   Partner.ClientCode = P_CLIENTCO
   Partner.SessionType = P_SESSTYPE
   Partner.PartnerCode = P_PARTCODE
   Partner.ShowCoupleDetails
   Partner.EnableCupCStar
   
   Next_Button.Enabled = False
   EnterCoupleCode1.Visible = False
   CoupleCodeString = ""
   
End Sub

Private Sub Next_Button_Click()
   If CoupleCodeCtrl1.ClientCoupleCode = "0" Then
      COUPCODE = CoupleCodeString
      P_COUPCODE = CoupleCodeString
   End If
   CoupleSummaryForm.Show
   Unload Me
End Sub

'Private Sub ReturnVisit1_SelectionMade()
'   P_RETURNV = ReturnVisit1.ClientReturnVisit
'   Partner.ReturnVisit = P_RETURNV
'   If P_RETURNV = "0" Then
'      P_NEWCODE = "1"
'      Client.NewClientCode = P_NEWCODE
'      P_CLIENTCO = NewNextClientCode
'      NewNextClientCode = NewNextClientCode + 1
'   End If
'   Next_Button.Enabled = True
'End Sub
